//动态设置图表每块的高度
export function setChartHeight() {
  //全屏高度
  if(document.querySelector('.chart-content-wrapper')){
    let height = document.querySelector('.chart-content-wrapper').clientHeight - 55;
    let arr = document.querySelectorAll('.chart-container');
    for (let i = 0; i < arr.length; i++) {
      arr[i].style.height = height + 'px';
    }
  }
  //半屏高度
  if(document.querySelector('.chart-content-wrapper1')){
    let height2 = document.querySelector('.chart-content-wrapper1').clientHeight - 55;
    let arr2 = document.querySelectorAll('.half-chart-container');
    for(let j = 0; j<arr2.length; j++){
      arr2[j].style.height = height2 + 'px';
    }
  }
  if(document.querySelector('.chart-content-wrapper2')){
    let height3 = document.querySelector('.chart-content-wrapper2').clientHeight - 55;
    let arr3 = document.querySelectorAll('.three-half-chart-container');
    for(let j = 0; j<arr3.length; j++){
      arr3[j].style.height = height3 + 'px';
    }
    if(document.querySelector('.four-chart')){
      document.querySelector('.four-chart').style.height = height3*0.89 - 32 + 'px';
      let arr4 = document.querySelectorAll('.four-chart-item');
      for(let j = 0; j<arr4.length; j++){
        arr4[j].style.height = (height3*0.89 )/2- 64 + 'px';
      }
      if(document.querySelectorAll('.treeMap-chart').length!=0){
        document.querySelectorAll('.treeMap-chart').style.height = (height3*0.89 )/2- 90 + 'px';
      }
    }
  }
}
// 根据所给平均值和所给数据的最大最小值判断坐标维度
export function seqencingArr(arr, a, type) {
  let x = [];
  arr.map((item, index) => {
    x.push(item);
  })
  x.sort(function (a, b) {
    return b - a;
  });
  let length = arr.length;
  let b = 0;
  if (Math.abs(arr[0]) > Math.abs(arr[length - 1])) {
    b = Math.abs(arr[0])
  } else {
    b = Math.abs(arr[length - 1])
  }
  a = Math.abs(a);
  if (b > a) {
    return null;
  } else {
    let num = parseInt(a / 10);
    if(type==1){
      num = num*10+num*2;
    }else{
      num = num * 10 + 10;
    }
    return num
  }
}
//退出全屏
export function quitFullScreen() {
  document.exitFullscreen ? document.exitFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitExitFullscreen ? document.webkitExitFullscreen() : '';
}
//echart loading 样式
export const loadingOpt = {
  text: 'loading',
  color: '#c23531',
  textColor: '#fff',
  maskColor: '#1B2B44',
  zlevel: 0
}
//获取时间格式
export function getDate() {
  let date = new Date();
  let nowDate = {};
  nowDate.year = date.getFullYear();
  nowDate.month = date.getMonth() + 1;
  nowDate.date = date.getDate();
  nowDate.day = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getDay()];
  nowDate.hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
  nowDate.minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
  nowDate.second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
  return nowDate;
}
//判断一月后是否显示同比
export function isJanuary() {
  let month = getDate().month;
  let boundaryNum = {}
  let preStart = 4;
  let nextEnd = 5;
  if (month == 1) {
    preStart = 5;
    nextEnd = 6;
  }
  boundaryNum.preStart = preStart;
  boundaryNum.nextEnd = nextEnd;
  return boundaryNum;
}
function in_array(arr,element){
  for(let i = 0;i<arr.length;i++){
    if(arr[i] == element){
      return true;
    }
  }
  return false;
}


function toOldSeventeen(a){
  let len = a.length;
  let res = [];
  let temp = [];
  for(let i = 0;i<len;i++){
    var ini_sort = 1;
    for(var j = 0;j<len;j++){
      if(a[i] > a[j]){
        if(!in_array(temp,a[j])){
          ini_sort++;
        }
        temp.push(a[j]);
      }
    }
    temp = [];
    res.push(ini_sort);
  }
  return res;
}
//排序
export function getRankingData(self) {
  // self 为传入的this
  //定义比例数组
  let proportion = [];
  //定义比例数组拷贝
  let proportion1 = [];
  //定义统筹区id
  let idArr = [];
  //定义排名数组
  let rankArr = []
  //遍历reportData
  self.reportData.map((item, index) => {
    //将统筹区id逐次添加进idArr
    idArr.push(item.areaId);
    //计算完成比例 如果新增任务不存在 比例设为0 将完成比例逐次添加到proportion
    if (item.newTask) {
      proportion.push((item.dangQiNum / item.newTask).toFixed(4))
    } else {
      proportion.push(-1);
    }
  })
  //copy
  proportion1 = JSON.parse(JSON.stringify(proportion))
  //将完成比例从大到小排序
  proportion.sort(function (a, b) {
    return b - a;
  });
  //遍历proportion1 设置rank值 如果遍历值为0则用户为设置目标返回空
  //查询遍历值在proportion中的位置+1 即为其对应rank值
  //计算完成比例
  proportion1.map((item, index) => {
    if (item !== -1) {
      rankArr.push(proportion.indexOf(item) + 1)
      self.reportData[index].rank = proportion.indexOf(item) + 1;
      self.reportData[index].completionRate = Number((Math.round(item * 10000) / 100).toFixed(2)) + '%';
    } else {
      rankArr.push('')
      self.reportData[index].rank = '';
      self.reportData[index].completionRate = '';
    }
  })
  //将获取的统筹区id数组和排名数组赋值给this
  self.idArr = idArr;
  self.rankArr = rankArr;
  // 子组件要把排名和区域Id传到父组件里
  self.$emit('importExcelReport', self.idArr, self.rankArr)
}
//排序2
export function getRankData(self, reportData, type) {
  let proportion = [];
  let proportion1 = [];
  let idArr = [];
  let rankArr = []
  reportData.map((item, index) => {
    idArr.push(item.areaId);
    if (item.newTask) {
      proportion.push((item.dangQiNum / item.newTask).toFixed(4))
    } else {
      proportion.push(-1);
    }
  })
  proportion1 = JSON.parse(JSON.stringify(proportion))
  proportion.sort(function (a, b) {
    return b - a;
  });
  proportion1.map((item, index) => {
    if (item !== -1) {
      rankArr.push(proportion.indexOf(item) + 1)
      reportData[index].rank = proportion.indexOf(item) + 1;
      reportData[index].completionRate = Number((Math.round(item * 10000) / 100).toFixed(2)) + '%';
    } else {
      rankArr.push('')
      reportData[index].rank = '';
      reportData[index].completionRate = '';
    }
    if (type) {
      self.idArr1 = idArr;
      self.rankArr1 = rankArr;
    } else {
      self.idArr = idArr;
      self.rankArr = rankArr;
    }
  })
}
//正则 限制15位纯数字（包括小数点后2位）
export function fifteenNumReg(val){
  let reg= '';
  if(val==0||val==0.00){
    return false;
  }
  if(val>1){
    reg = /^[1-9]\d{0,12}(\.\d{1,2})?$/;
  }else{
    reg = /^\d{0,13}(\.\d{1,2})?$/;
  }
  if(reg.test(val)){
    return true
  }else{
    return false;
  }
}
//正则 限制15位纯数字（不包括小数点后2位）
export function fifteenNum(val){
  let  reg = /^([1-9]\d{0,14})$/;
  if(val==0||val==0.00){
    return false;
  }
  if(reg.test(val)){
    return true
  }else{
    return false;
  }
}
//正则 20汉字 字母
export function isChineseCharacter(val){
  let reg = /^([\u4e00-\u9fa5a-zA-Z]){1,20}$/;
  if(reg.test(val)){
    return true;
  }else{
    return false;
  }
}

//正则 20汉字 字母
export function isChineseValue(val){
  let reg = /^([\u4e00-\u9fa5]){1,20}$/;
  if(reg.test(val)){
    return true;
  }else{
    return false;
  }
}

// 阻止元素默认行为
export function stopIt(ev){
  if( ev.preventDefault ){
    //preventDefault()方法阻止元素发生默认的行为
    ev.preventDefault();
  }else {
    //IE浏览器下用window.event.returnValue = false;实现阻止元素发生默认的行为
      window.event.returnValue = false;
      return false;
  }
}

// 检测点击backspace后阻止默认行为
export function forbiddenBackCode(that){
  let nodeArr = ['BODY','DIV','P','UL','TABLE','LI','SPAN']
  window.onkeydown = window.onkeypress = function(e){
    e = e || window.event;
    if(e&&e.keyCode==8){
      if(nodeArr.includes(e.target.nodeName)){
        stopIt(e)
      }
    }
  }
  //检测ie 添加路由跳转
  if (
    '-ms-scroll-limit' in document.documentElement.style &&
    '-ms-ime-align' in document.documentElement.style
  ) { // detect it's IE11
    window.addEventListener("hashchange", function(event) {
      let currentPath = window.location.hash.slice(1);
      that.$router.push(currentPath)
    }, false)
  }
}
// 钱数和人数 精确单位 val为原始值 type为单位类型
export function getValue(val,type){
  let units = '';
  let unit = '';
  if(type=='money'){
    units = '万元';
    unit = '元';
  }else if(type=='people'){
    units = '万人';
    unit = '人';
  }else if(type=='frequency'){
    units = '万次';
    unit = '次';
  }
  let value = '';
  if(val/10000>1){
    value = `${Number((val/10000).toFixed(2))}${units}`
  }else{
    value = `${val}${unit}`
  }
  return value;
}


//svg path
    export const svgPath = {
      person: 'M29.4,6.2C16,6.2,5.2,17,5.2,30.4c0,13.4,10.8,24.2,24.2,24.2c13.4,0,24.2-10.8,24.2-24.2C53.6,17,42.8,6.2,29.4,6.2\n' +
      '\t\tL29.4,6.2z M29.2,17.1c3.5,0,6.4,2.9,6.4,6.5c0,3.6-2.9,6.5-6.4,6.5c-3.5,0-6.4-2.9-6.4-6.5C22.7,20,25.6,17.1,29.2,17.1L29.2,17.1\n' +
      '\t\tz M17.9,41.1c0-5.2,1.3-7.2,5.4-9.4c1.6-0.8,4,1.1,5.9,1.1c1.9,0,4.3-1.9,5.9-1.1c4,2.1,5.9,4.1,5.9,9.4\n' +
      '\t\tC40.9,42.9,17.9,43,17.9,41.1L17.9,41.1z M17.9,41.1',
      fullScreen: 'M33.3,23l11.1-11.1h-5.8c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.6,1.6-1.6h9.8c0.4,0,0.8,0.2,1.2,0.5\n' +
      '\t\t\tc0.3,0.3,0.5,0.7,0.5,1.2V20c0,0.9-0.7,1.6-1.6,1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.8L35.6,25.3C35,24.4,34.2,23.6,33.3,23L33.3,23z\n' +
      '\t\t\t M35.6,34.3l11.1,11.1v-5.8c0-0.9,0.7-1.6,1.6-1.6c0.9,0,1.6,0.7,1.6,1.6v9.8c0,0.4-0.2,0.8-0.5,1.2c-0.3,0.3-0.7,0.5-1.2,0.5\n' +
      '\t\t\th-9.8c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.6,1.6-1.6h5.8L33.3,36.6C34.2,36,35,35.2,35.6,34.3L35.6,34.3z M24.3,36.6L13.2,47.7H19\n' +
      '\t\t\tc0.9,0,1.6,0.7,1.6,1.6c0,0.9-0.7,1.6-1.6,1.6H9.2c-0.4,0-0.8-0.2-1.2-0.5c-0.3-0.3-0.5-0.7-0.5-1.2v-9.8c0-0.9,0.7-1.6,1.6-1.6\n' +
      '\t\t\tc0.9,0,1.6,0.7,1.6,1.6v5.8L22,34.3C22.6,35.2,23.4,36,24.3,36.6L24.3,36.6z M22,25.3L10.9,14.2V20c0,0.9-0.7,1.6-1.6,1.6\n' +
      '\t\t\tc-0.9,0-1.6-0.7-1.6-1.6v-9.8c0-0.4,0.2-0.8,0.5-1.2c0.3-0.3,0.7-0.5,1.2-0.5H19c0.9,0,1.6,0.7,1.6,1.6c0,0.9-0.7,1.6-1.6,1.6\n' +
      '\t\t\th-5.8L24.3,23C23.4,23.6,22.6,24.4,22,25.3L22,25.3z M22,25.3',
      signOut: 'M42.6,12.6c1.6,1.1,2.9,2.4,4.1,3.8c1.2,1.4,2.2,2.9,3.1,4.5c0.9,1.6,1.5,3.3,2,5.1c0.4,1.8,0.7,3.6,0.7,5.5\n' +
      '\t\t\tc0,3.2-0.6,6.2-1.8,9c-1.2,2.8-2.9,5.3-5,7.3c-2.1,2.1-4.5,3.7-7.3,5c-2.8,1.2-5.8,1.8-9,1.8c-3.2,0-6.2-0.6-9-1.8\n' +
      '\t\t\tc-2.8-1.2-5.3-2.9-7.4-5c-2.1-2.1-3.8-4.5-5-7.3c-1.2-2.8-1.8-5.8-1.8-9c0-1.8,0.2-3.6,0.6-5.4c0.4-1.8,1-3.4,1.8-5\n' +
      '\t\t\tc0.8-1.6,1.8-3.1,2.9-4.4c1.2-1.4,2.5-2.6,3.9-3.7c0.8-0.6,1.6-0.8,2.5-0.6c0.9,0.1,1.6,0.6,2.1,1.3c0.6,0.7,0.8,1.5,0.6,2.4\n' +
      '\t\t\tc-0.1,0.9-0.6,1.6-1.3,2.2c-2.2,1.6-3.8,3.5-5,5.8c-1.2,2.3-1.7,4.8-1.7,7.5c0,2.3,0.4,4.4,1.3,6.4c0.9,2,2,3.8,3.5,5.3\n' +
      '\t\t\tc1.5,1.5,3.3,2.7,5.3,3.6c2,0.9,4.2,1.3,6.4,1.3c2.3,0,4.4-0.4,6.4-1.3c2-0.9,3.8-2.1,5.3-3.6c1.5-1.5,2.7-3.3,3.6-5.3\n' +
      '\t\t\tc0.9-2,1.3-4.2,1.3-6.4c0-2.7-0.6-5.2-1.9-7.6c-1.2-2.4-3-4.4-5.2-5.9c-0.8-0.5-1.2-1.2-1.4-2.1c-0.2-0.9,0-1.7,0.5-2.5\n' +
      '\t\t\tc0.5-0.7,1.2-1.2,2.1-1.3C41,11.9,41.9,12.1,42.6,12.6L42.6,12.6z M29.3,31.7c-0.9,0-1.7-0.3-2.3-1c-0.6-0.6-1-1.4-1-2.3V8.8\n' +
      '\t\t\tc0-0.9,0.3-1.7,1-2.3c0.6-0.7,1.4-1,2.3-1c0.9,0,1.7,0.3,2.4,1c0.6,0.7,1,1.4,1,2.3v19.7c0,0.9-0.3,1.7-1,2.3\n' +
      '\t\t\tC31,31.4,30.3,31.7,29.3,31.7L29.3,31.7z M29.3,31.7',
      closeFullScreen: 'M334.7,319.2c0,4.8,2.1,9.3,5.9,12.7l0.5,0.5c3.4,3.8,7.9,5.9,12.7,5.9l117.5,0.2l7-0.1l-4,0.1h13.6\n' +
      '\t\t\tc5.3,0,10.2-2,13.9-5.7c3.3-3.3,5.1-7.6,5.1-12.2c0-7.6-5-14.3-12.6-16.7l-100.2-0.2l151.8-155.8c6.7-6.7,6.7-17.7-0.1-24.5\n' +
      '\t\t\tc-6.7-6.7-17.8-6.8-24.5-0.1L369.2,279.1l-0.3-101.6c-1-8.7-8.4-15.2-17.2-15.2c-4.7,0-9,1.8-12.3,5.1c-3.3,3.3-5,7.6-5,12.2\n' +
      '\t\t\tL334.7,319.2 M258.7,456.4l-139.5-0.3c-4.6,0-8.9,1.8-12.2,5c-3.3,3.3-5.1,7.7-5.1,12.3c0,8.8,6.5,16.2,15.2,17.2l101.6,0.3\n' +
      '\t\t\tL65.6,645.5c-6.7,6.7-6.7,17.8,0.1,24.5c6.7,6.7,17.8,6.8,24.5,0.1l153-154.6l0.2,102.5c2.5,7.6,9.1,12.6,16.7,12.6\n' +
      '\t\t\tc4.6,0,8.8-1.9,12.2-5.1c3.6-3.6,5.7-8.6,5.7-13.9v-15.8l-0.1,4l0.1-7l-0.2-117.3c0-4.8-2.1-9.3-5.9-12.7l-0.5-0.5\n' +
      '\t\t\tC268,458.5,263.5,456.4,258.7,456.4',
      home: 'M33,49.5V38h-7.2v11.5c-0.2,0-0.4,0-0.6,0c-3.4,0-6.8,0-10.2,0c-1.2,0-2-0.8-2-2c0-4.7,0-9.5,0-14.2\n' +
      '\t\t\tc0-0.2,0.2-0.6,0.4-0.7c3.1-2.7,6.2-5.4,9.3-8.2c2.1-1.8,4.1-3.6,6.2-5.4c0.2-0.1,0.3-0.3,0.5-0.4c1.2,1.1,2.5,2.1,3.7,3.2\n' +
      '\t\t\tc4,3.5,8.1,7.1,12.1,10.6c0.4,0.4,0.6,0.8,0.6,1.4c0,4.5,0,9,0,13.5c0,0.8-0.2,1.5-0.9,2c-0.2,0.2-0.6,0.3-0.8,0.3\n' +
      '\t\t\tc-3.6,0-7.2,0-10.9,0C33.2,49.5,33.1,49.5,33,49.5L33,49.5z M38.5,17.6c0-1.9,0-3.6,0-5.4c0-1.1,0.3-1.4,1.3-1.4\n' +
      '\t\t\tc1.6,0,3.3,0,4.9,0c0.8,0,1.1,0.3,1.1,1.3c0,3.7,0,7.5,0,11.2c0,0.6,0.1,0.9,0.6,1.3c1.8,1.5,3.5,3.1,5.3,4.7\n' +
      '\t\t\tc0.9,0.8,0.9,1.1,0.2,2.1c-0.4,0.6-0.9,1.1-1.3,1.7c-0.5,0.7-1,0.7-1.7,0.1c-6.3-5.5-12.5-11.1-18.8-16.6\n' +
      '\t\t\tc-0.2-0.2-0.4-0.4-0.7-0.6c-1.4,1.2-2.8,2.5-4.2,3.7c-5.1,4.5-10.2,9-15.2,13.5c-0.7,0.6-1.1,0.6-1.7-0.1c-0.5-0.6-1-1.2-1.4-1.8\n' +
      '\t\t\tc-0.6-0.7-0.5-1.2,0.1-1.8c2.8-2.5,5.7-5,8.5-7.5c3.8-3.4,7.6-6.7,11.4-10.1c1.7-1.5,3.4-1.5,5.1,0c2,1.8,4.1,3.6,6.1,5.4\n' +
      '\t\t\tC38.2,17.4,38.3,17.5,38.5,17.6L38.5,17.6z M38.5,17.6',
      editBtn1: 'M482.3 96H155.4C122.6 96 96 122.6 96 155.4v713.1c0 32.8 26.6 59.4 59.4 59.4h713.1c32.8 0 59.4-26.6 59.4-59.4V541.7c0-7.6-2.9-15.2-8.7-21-5.8-5.8-13.4-8.7-21-8.7s-15.2 2.9-21 8.7c-5.8 5.8-8.7 13.4-8.7 21v326.9H155.4V155.4h326.9c7.6 0 15.2-2.9 21-8.7 5.8-5.8 8.7-13.4 8.7-21s-2.9-15.2-8.7-21c-5.8-5.8-13.4-8.7-21-8.7z',
      editBtn2: 'M838.9 155.4c4.6 0 13.4 1.1 21 8.7 11.6 11.6 11.6 30.4 0 42L515 551l-53.4 11.6 11.5-53.7 344.8-344.8c7.5-7.5 16.4-8.7 21-8.7m0-59.4c-22.8 0-45.6 8.7-63 26.1L431.1 466.9c-8.1 8.1-13.7 18.4-16.1 29.6l-21.5 100.8c-2.6 18.2 11.6 33.9 29.3 33.9 1.4 0 2.8-0.1 4.3-0.3l100.6-21.8c11.2-2.4 21.4-8 29.4-16.1l344.8-344.8c34.8-34.8 34.8-91.3 0-126.1-17.4-17.4-40.2-26.1-63-26.1z',
      helpBtn: 'M511.999488 63.224973c-247.52242 0-448.775027 200.544479-448.775026 448.771957 0 247.53163 200.544479 448.777073 448.775026 448.777073 247.529583 0 448.775027-200.548572 448.775027-448.777073-0.001023-247.524466-200.545502-448.771957-448.775027-448.771957z m0 833.440944c-212.43939 0-384.659777-172.220387-384.659776-384.667964 0-212.443483 172.220387-384.661823 384.659776-384.661823 212.449623 0 384.66387 172.21834 384.66387 384.661823 0 212.447577-172.214247 384.667963-384.66387 384.667964z m0-252.136508c-25.237801 0-46.279023 21.738094-46.279022 47.678906 0 26.64894 21.041222 47.682999 46.279022 47.682999 25.945929 0 46.279023-21.035082 46.279023-47.682999 0-26.643823-21.034059-47.678906-46.279023-47.678906z m121.311927-302.925241c-11.217483-17.528212-27.347858-31.555693-47.680952-42.071187-20.338211-10.518564-44.183292-15.425318-70.827116-15.425318-28.749788 0-53.987588 5.607718-75.729775 18.231223-21.039175 11.920494-37.863353 27.345812-49.086975 46.279023-11.217483 18.932188-16.823154 37.162388-16.823154 55.393611 0 8.413624 3.502777 16.827247 10.516518 24.541953 7.013741 7.716752 15.429411 11.223622 25.945929 11.223622 17.530258 0 29.447682-10.520611 35.760458-32.258704 7.013741-21.035082 14.728446-36.461423 24.543999-46.979988 9.8176-10.516518 24.539906-16.126282 44.873-16.126282 17.530258 0 31.55774 5.609765 42.781363 16.126282 11.217483 10.518564 16.822131 23.14207 16.82213 38.566364 0 7.712659-2.100848 14.724353-5.605671 21.734-3.508917 7.013741-7.714705 12.627598-13.326517 18.235317-5.611811 5.609765-14.027481 14.023388-25.945928 24.541952-13.320377 11.920494-24.543999 22.441105-32.251542 31.555694-7.714705 8.413624-14.027481 18.934235-18.938328 30.854728-4.904707 11.918447-7.007601 25.945929-7.007601 42.069141 0 12.623505 3.510964 22.441105 9.8176 28.751834 7.013741 6.310729 14.722306 9.8176 24.543999 9.8176 18.231223 0 29.454846-10.520611 32.952506-30.151717 2.106987-9.114588 4.203742-16.128329 4.910847-19.635199 0.694825-3.50687 2.109034-7.714705 4.203742-11.217483 2.102894-4.209882 4.912893-8.417717 8.41567-12.627598 4.205788-4.203742 9.116635-9.813506 15.429411-15.425318 22.441105-21.037129 37.870516-35.760458 46.977941-44.875047 8.41567-8.417717 16.130376-18.934235 22.443151-31.555693 7.007601-11.920494 9.815553-26.644847 9.114589-42.071188 0-20.336164-5.605671-39.969317-16.829294-57.501622z',
      searchBtn: 'M921.6 686.08h-245.76c-10.24 0-20.48-10.24-20.48-20.48s10.24-20.48 20.48-20.48H921.6c10.24 0 20.48 10.24 20.48 20.48s-10.24 20.48-20.48 20.48z m0-122.88h-245.76c-10.24 0-20.48-10.24-20.48-20.48s10.24-20.48 20.48-20.48H921.6c10.24 0 20.48 10.24 20.48 20.48s-10.24 20.48-20.48 20.48z m-166.4-289.28c-2.56 2.56-243.2 227.84-243.2 227.84v389.12l-163.84-81.92v-307.2L112.64 281.6c-2.56-2.56-5.12-5.12-7.68-5.12-15.36-15.36-23.04-35.84-23.04-58.88 0-46.08 38.4-84.48 84.48-84.48h527.36c46.08 0 84.48 38.4 84.48 84.48 0 23.04-10.24 43.52-23.04 56.32zM693.76 179.2H166.4C145.92 179.2 128 197.12 128 217.6c0 10.24 2.56 20.48 10.24 25.6l2.56 2.56 227.84 215.04 15.36 12.8 2.56 25.6-2.56 273.92 81.92 40.96V473.6l15.36-12.8 230.4-212.48 2.56-2.56c7.68-7.68 10.24-15.36 10.24-25.6 7.68-23.04-10.24-40.96-30.72-40.96z m-17.92 588.8H921.6c10.24 0 20.48 10.24 20.48 20.48s-10.24 20.48-20.48 20.48h-245.76c-10.24 0-20.48-10.24-20.48-20.48 0-12.8 7.68-20.48 20.48-20.48z',
      resetBtn1: 'M873.489 673.377c-15.633-9.283-35.747-4.163-44.975 11.391-66.741 112.014-189.13 181.584-319.363 181.584-173.765 0-320.054-119.881-360.445-281.296l47.644 47.615c12.801 12.803 33.558 12.803 46.363 0 12.751-12.803 12.751-33.558-0.054-46.363l-114.652-114.626c-9.338-9.39-23.364-12.164-35.693-7.095-12.27 5.069-20.221 17.021-20.221 30.275 0 240.989 196.068 437.057 437.057 437.057 153.226 0 297.169-81.841 375.702-213.593 9.231-15.552 4.163-35.665-11.363-44.948v0z',
      resetBtn2: 'M509.153 57.805c-168.484 0-319.095 94.115-392.988 245.603-7.95 16.271-1.173 35.906 15.099 43.829 16.113 7.95 35.906 1.255 43.803-15.073 62.849-128.789 190.839-208.79 334.087-208.79 173.767 0 320.003 119.881 360.445 281.271l-58.208-58.18c-12.801-12.803-33.507-12.803-46.309 0s-12.801 33.556 0 46.363l125.215 125.215c6.242 6.268 14.619 9.604 23.155 9.604 4.212 0 8.483-0.827 12.538-2.507 12.27-5.069 20.222-17.021 20.222-30.275-0.001-240.991-196.068-437.057-437.058-437.057v0z'
    }

export const loadingOptTrans = {
  text: 'loading',
  color: '#c23531',
  textColor: '#fff',
  maskColor: 'rgba(255, 255, 255, 0)',
  zlevel: 0
}

